<?php
namespace app\backend\validate;

use think\Validate;

class Role extends Validate
{
    protected $rule =   [
        'name'              => 'require|min:2',
        'remark'              => 'require|min:2',
    ];

    protected $message  =   [
        'name.require'      => '角色名称必须',
        'name.min'       => '角色名称不能小于2位',
        'remark.require'      => '角色描述必须',
        'remark.min'       => '角色描述不能小于2位',
    ];
}